<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Install
 *
 * @author charly
 */
class Install implements Nippy_Application_Install {

    public function index () {
        self::InstallPath('install/');
        self::extractTo('news.zip', dirname(__FILE__));
        self::register('News', 'printable', true);
        self::objects('news_obj.zip');
        return self::success();
    }

    public function UserInterface(&$tpl) {
        $tpl->assignBlock(Nippy_View_Element::create('div', array('id'=>'license')), Nippy_File::getOne('install/License.html'));
    }

    public function routes() {
        return array(
            'get'=>'News-GetOne',
            'search'=>'News-GetMany'
        );
    }
}
?>
